/**
 * Copyright (c) 2015 Baidu. All Rights Reserved.
 *
 * @file Config模块单测
 * @author yuanguozheng
 */
var config = require('../utils/config');

exports.testTypeMapping = function (test) {
    test.equal('Object', config.typeMapping('', ''));
    test.equal('NSObject *', config.typeMapping('oc', ''));
    test.equal('Object', config.typeMapping('java', ''));
    test.equal('NSMutableArray *', config.typeMapping('oc', 'array'));
    test.equal('String', config.typeMapping('java', 'string'));
    test.done();
};

exports.testProjectConfig = function (test) {
    test.equal('output', config.projectConfig('path'));
    test.notEqual('output', config.projectConfig('root_class'));
    test.equal(null, config.projectConfig('aaa'));
    test.done();
};

exports.testSetters = function (test) {
    test.notEqual(null, config.setters());
    test.done();
};

exports.testRequestRules = function (test) {
    test.notEqual(null, config.requestRules());
    test.done();
};